package com.xiaoshuidi.cloud.module.rooms.pojo.roomel;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.zxp.esclientrhl.annotation.ESID;
import org.zxp.esclientrhl.annotation.ESMapping;
import org.zxp.esclientrhl.annotation.ESMetaData;
import org.zxp.esclientrhl.enums.DataType;

import java.util.Date;

/**
 * @Author: lss
 * @CreateTime: 2023-04-21 18:19
 * @Version: 1.0
 */
@Schema(description = "es空间租赁结构")
@ESMetaData(indexName = "fy_rentalspace",printLog = true )
@Data
public class RentalSpaceelEntity {
    //编码
    @ESID
    private Integer id;

    //空间名称
    @ESMapping(datatype = DataType.keyword_type)
    private String name;

    //省份
    @ESMapping(datatype = DataType.keyword_type)
    private String province;

    //城市
    @ESMapping(datatype = DataType.keyword_type)
    private String city;

    //区域
    @ESMapping(datatype = DataType.keyword_type)
    private String district;

    //商圈
    @ESMapping(datatype = DataType.keyword_type)
    private String block;

    //详细地址
    @ESMapping(datatype = DataType.keyword_type)
    private String address;

    //小区/写字楼名称
    @ESMapping(datatype = DataType.keyword_type)
    private String area;

    //面积
    @ESMapping(datatype = DataType.double_type)
    private Double space;

    //房态
    @ESMapping(datatype = DataType.keyword_type)
    private String rentStatus;

    //类型 商铺、办公室、其他
    @ESMapping(datatype = DataType.keyword_type)
    private String type;

    //公寓id
    @ESMapping(datatype = DataType.integer_type)
    private Integer apartmentId;

    //月租金
    @ESMapping(datatype = DataType.double_type)
    private Double monthRental;

    //房间描述
    @ESMapping(datatype = DataType.keyword_type)
    private String roomDesc;

    //房间备注
    @ESMapping(datatype = DataType.keyword_type)
    private String remark;

    //是否停用
    @ESMapping(datatype = DataType.boolean_type)
    private Boolean isStop;

    //承租人姓名
    @ESMapping(datatype = DataType.keyword_type)
    private String tenantMainName;

    //承租人手机号
    @ESMapping(datatype = DataType.keyword_type)
    private String tenantMainPho;

    //租户编号
    @ESMapping(datatype = DataType.integer_type)
    private Integer tenantId;

    //创建者
    @ESMapping(datatype = DataType.keyword_type)
    private String creator;

    //创建时间
    @ESMapping(datatype = DataType.date_type)
    private Date createTime;

    //更新者
    @ESMapping(datatype = DataType.keyword_type)
    private String updater;

    //更新时间
    @ESMapping(datatype = DataType.date_type)
    private Date updateTime;

    //是否删除
    @ESMapping(datatype = DataType.boolean_type)
    private Boolean deleted;

    //合同信息的json
    @ESMapping(datatype = DataType.keyword_type)
    private String contractInfo;

    //账单信息的json
    @ESMapping(datatype = DataType.keyword_type)
    private String billInfo;
}
